//
//  LZFileFinder.h
//  LZSpamCode
//
//  Created by ZengLiZhi on 2024/6/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LZFileManager : NSObject

#pragma mark - 打开文件
+ (NSMutableString *)stringWithContentsOfFile:(NSString *)filePath;
//写入文件
+ (void)writeContent:(NSString *)content toFile:(NSString *)filePath;
#pragma mark - 查找文件、文件夹
//获取文件path
+ (NSString *)findFilePath:(NSString *)inDirectory targetFileName:(NSString *)targetFileName;
//获取文件夹path
+ (NSString *)findDirectoryPath:(NSString *)inDirectory targetName:(NSString *)targetName;

#pragma mark - 通过moveItem改变文件名
+(void)renameFile:(NSString *)oldPath newPath:(NSString *)newPath;

#pragma mark - 正则匹配修改
+ (BOOL)regularReplacement:(NSMutableString *)originalString regularExpression:(NSString *)regularExpression newString:(NSString *)newString;
@end

NS_ASSUME_NONNULL_END
